<?php

header("content-type:text/html;charset=utf-8");
require_once 'shujvku.php';

$id = $_GET["id"];

$sql = "
    delete from t_message
    where id=$id
";

//echo $sql;

//die;

$result = $conn->query($sql);
if($result===false){
    echo "数据库操作失败";
}else {
    header("Location:index.php");
}
       
